home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000241_sonicechoesWit…pam@hotmail.com_Wed Aug 27 17:50:45 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
88 lines
Article: 14481 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!not-for-mail
From: dgk <sonicechoes@hot-nospamp-mail.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How to recover from a hangup?
Date: Wed, 27 Aug 2003 16:08:05 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 66
Message-ID: <fr3qkvk2abb3h4r77eij0nresfrk94jnjq@4ax.com>
References: <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com> <biivdc$t5d$1@sesame.cc.columbia.edu>
Reply-To: sonicechoesWithNoSpam@hotmail.com
NNTP-Posting-Host: dsl027-158-082.nyc1.dsl.speakeasy.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: reader2.panix.com 1062014895 19843 216.27.158.82 (27 Aug 2003 20:08:15 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 27 Aug 2003 20:08:15 +0000 (UTC)
X-Newsreader: Forte Agent 1.92/32.572
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14481
On 27 Aug 2003 15:05:16 -0400, fdc@sesame.cc.columbia.edu (Frank da
Cruz) wrote:
>In article <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com>,
>dgk <sonicechoesWithNoSpam@hotmail.com> wrote:
>: I have an app that uses some of the K95 provided scripts and answers
>: calls and has a simple dialog. I have a problem that results in the
>: Kermit dos box printing this line over and over:
>:
>: ?Connection on Conexant HCF V90 56K Data Fax PCI Modem is not open.
>:
>: The script is kicked off by this section of code from Dhostmdm.KSC
>:
>: ; Break out of loop if there is a nonrecoverable error, otherwise
>: ; continue.
>:
>: while 1 {
>: answer
>: if > \v(dialstatus) 0 if < \v(dialstatus) 22 stop 1 Fatal modem error
>: if = \v(dialstatus) 0 take MM3.ksc
>: echo Type Ctrl-C to exit... ; Give user a chance to cancel
>: sleep 2
>: }
>:
>: MM3.KSC just asks for a username and password, and then a menu option
>: here:
>:
>: ASG \%T 0
>: :GETCMD ; What does the user want to do anyway?
>: OUTPUT \13\10Command:
>: CLEAR INPUT
>: INPUT 10 \13
>: DEF \%C
>: DEF \%Z \V(INPUT)
>: DO STRIP {\%Z}
>: IF = \FLENGTH(\%Z) 0 GOTO GETCMD
>: ASG \%C \%N
>: IF EQUAL {\%C} SND GOTO RECEIVE
>: IF EQUAL {\%C} {RCV R} GOTO SEND
>: IF EQUAL {\%C} BYE GOTO IFAIL
>: IF EQUAL {\%C} {RCV M} GOTO SENDM
>: OUTPUT \13\10REQUEST ERROR|\%C|
>: INC \%T 1
>: IF = \%T 4 GOTO IFAIL
>: GOTO GETCMD
>:
>:
>: I'll be the first person to admit that I don't know much of the Kermit
>: language but the code works some of the time that a user hangs up.
>: Othertimes I get that line repeating and have to restart Kermit.
>:
>: Is there some error checking I should be doing here to prevent the
>: hangup from messing the modem up?
>:
>That's what it sounds like. Every command that could fail should be
>checked. Your MM3.KSC file is a GOTO loop containing INPUTs and OUTPUTs.
>These commands fail if the connection is lost, but your script doesn't
>check for it, so loops forever, printing error messages. See the
>tutorial:
>
> http://www.columbia.edu/kermit/ckscripts.html#tut
>
>- Frank
Thanks. I've been putting IF FAIL END after each INPUT, SEND, and
RECEIVE commands. It seems to be working ok.